﻿using System;

namespace ElectronicCommerce.Framework.TcpHelper.Server
{
    /// <summary>
    /// IMessage Server
    /// </summary>
    public interface IMessageServer
    {
        event EventHandler<ClientEventArgs> ClientConnected;

        event EventHandler<ClientEventArgs> ClientDisconnected;

        event EventHandler<MessageEventArgs> MessageReseive;

        void Start();

        void Stop();

        void SendMessage(Guid clientId, MessageInfo message);
    }
}
